package com.hktf.moedokilock.fragment;

import android.content.Context;
import android.view.View;

public abstract class BasePage {
    public View rootView;
    public Context context;

    private String title;
    private boolean isChecked;//是否选中

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public BasePage(Context context) {
        this.context = context;
        rootView = View.inflate(context, getLayoutId(), null);
        initView();
    }
    public abstract int getLayoutId();

    public abstract void initView();

    public abstract void initData() ;


    public void onDestroy() {
        context = null;
        rootView = null;
    }
}
